'''
Transform the metis output from:

4
5
4
...

 to the following format:

1	cluster_4
2	cluster_5
3	cluster_4
...

'''

import sys

if __name__ == '__main__':
	metisFile = open(sys.argv[1], 'r')
	outputFile = open(sys.argv[1] + ".map", 'w')
	
	counter = 1
	for line in metisFile:
		outputFile.write(str(counter) + '\tcluster_' + line.strip() + "\n")
		counter += 1